package com.lechi;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * web容器中进行部署 SpringBootServletInitializer让SpringBoot将应用程序以 WAR 包的形式部署在外部的SERVLET容器中（如 Tomcat、Jetty、Undertow等)，并提供一种简单的配置外部SERVLET容器的方法。
 *
 * @author yg
 */
public class LeChiServletInitializer extends SpringBootServletInitializer {
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(LeChiApplication.class);
    }
}
